package com.jiangcheng.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("回复")
@AllArgsConstructor
public class Reply implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "r_id", type = IdType.AUTO)
      @ApiModelProperty("回复ID")
    private Integer rId;

    @ApiModelProperty("回复内容")
    private String content;

    @ApiModelProperty("回复人ID")
    private Integer uId;

    @ApiModelProperty("评论ID")
    private Integer commentId;

    /**
     * 回复的回复ID
     */
    @ApiModelProperty("被回复的回复ID")
    private Integer toRId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",  locale = "zh" ,timezone="GMT+8")
    private LocalDateTime createdTime;


}
